package com.bzy.bladeauthapi.fegin;

import com.baomidou.mybatisplus.extension.api.R;
import com.bzy.bladeauthapi.entry.Role;
import com.bzy.bladeauthapi.entry.RoleJurisdiction;
import com.bzy.comment.servicename.ServiceName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户权限实体类;
 */
@FeignClient(value = ServiceName.AUTHER)
public interface RoleJurisdictionFeginClient {

    String rolejurisdiction = "rolejurisdiction";

    String add = rolejurisdiction + "add";
    String update = rolejurisdiction + "uodate";
    String delete = rolejurisdiction + "delete";
    String selOne = rolejurisdiction + "selOne";
    String selList = rolejurisdiction + "selList";

    /**
     * 添加权限;
     */

    @PostMapping(add)
    R add(@RequestBody RoleJurisdiction roleJurisdiction);


    @PostMapping(update)
    R update(@RequestBody   RoleJurisdiction roleJurisdiction);



    @PostMapping(delete)
    R delete(@RequestBody   RoleJurisdiction roleJurisdiction);


    @PostMapping(selOne)
    R selOne(@RequestBody  RoleJurisdiction roleJurisdiction);


    @PostMapping(selList)
    R selList(@RequestBody   RoleJurisdiction roleJurisdiction);
}
